﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;
using Model;

namespace BLL
{
    public class IntegralChangeBO
    {
        public IntegralChangeBO() { }
        IntegralChangeDAO dao = new IntegralChangeDAO();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(IntegralChange model)
        {
            return dao.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public int Update(IntegralChange model)
        {
            return dao.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(int ID)
        {
            dao.Delete(ID);
        }


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public IntegralChange GetModel(int ID)
        {
            return dao.GetModel(ID);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dao.GetList(strWhere);
        }

        /// <summary>
        /// 积分详情
        /// </summary>
        /// <param name="FromUserName"></param>
        /// <param name="dt1"></param>
        /// <param name="dt2"></param>
        /// <returns></returns>
        public DataTable GetInChange(string FromUserName, DateTime dt1, DateTime dt2)
        {
            return dao.GetInChange(FromUserName, dt1, dt2);
        }
    }
}
